|
|
|
|
|
|
|
Dim aryType As Variant
'
aryEditMode = Array("rdEditNone", "rdEditInProgress", "rdEditAdd")
aryLockType = Array("rdConcurReadOnly", "rdConcurLock", "rdConcurRowVer",
"rdConcurValues", "rdConCurBatchEdit")
aryType = Array("rdOpenForwardOnly", "rdOpenKeyset", "rdOpenDynamic",
"rdOpenStatic")
'
' set up env/con/rs
Set rdoEnv = rdoEngine.rdoCreateEnvironment("rdoTEMP", "admin", "")
Set rdoCon = rdoEnv.OpenConnection("RDC Books5")
Set rdoRS = rdoCon.OpenResultset("SELECT * FROM Authors")
'
' show properties of the rdoRS
strMsg = strMsg & "AbsolutePosition=" & CStr(rdoRS.AbsolutePosition) &
vbCrLf
strMsg = strMsg & "BOF=" & CStr(rdoRS.BOF) & vbCrLf
strMsg = strMsg & "Bookmark=" & rdoRS.Bookmark & vbCrLf
strMsg = strMsg & "Bookmarkable=" & CStr(rdoRS.Bookmarkable) & vbCrLf
strMsg = strMsg & "EditMode=" & aryEditMode(rdoRS.EditMode) & vbCrLf
strMsg = strMsg & "EOF=" & CStr(rdoRS.EOF) & vbCrLf
strMsg = strMsg & "hStmt=" & CStr(rdoRS.hStmt) & vbCrLf
strMsg = strMsg & "LastModified=" & rdoRS.LastModified & vbCrLf
strMsg = strMsg & "LockEdits=" & CStr(rdoRS.LockEdits) & vbCrLf
strMsg = strMsg & "LockType=" & aryLockType(rdoRS.LockType) & vbCrLf
strMsg = strMsg & "Name=" & rdoRS.Name & vbCrLf
strMsg = strMsg & "PercentPosition=" & CStr(rdoRS.PercentPosition) & vbCrLf
strMsg = strMsg & "Restartable=" & CStr(rdoRS.Restartable) & vbCrLf
strMsg = strMsg & "RowCount=" & CStr(rdoRS.RowCount) & vbCrLf
strMsg = strMsg & "Status=" & CStr(rdoRS.Status) & vbCrLf
strMsg = strMsg & "StillExecuting=" & CStr(rdoRS.StillExecuting) & vbCrLf
strMsg = strMsg & "Transactions=" & CStr(rdoRS.Transactions) & vbCrLf
strMsg = strMsg & "Type=" & aryType(rdoRS.Type) & vbCrLf
strMsg = strMsg & "Updatable=" & CStr(rdoRS.Updatable) & vbCrLf
'
MsgBox strMsg, vbInformation, "rdoResultset"
'
rdoRS.Close
rdoCon.Close
rdoEnv.Close
Set rdoRS = Nothing
Set rdoCon = Nothing
Set rdoEnv = Nothing
'
End Sub |
|
|
|
|
|
|
|
|
Note the use of the OpenResultset method of the rdoConnection object to create the rdoResultset. Save and run the project. After you click the Resultset button, you'll see a display similar to the one in Figure 18.10. |
|
|
|
|
|